import Vue from 'vue'
import App from './App.vue'
//导入路由
import  VueRouter  from  'vue-router'
Vue.use(VueRouter)
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
import router   from './router.js'
Vue.use(MintUI)
import moment  from  'moment'
import VuePreview from 'vue-preview'

// defalut install
Vue.use(VuePreview)
Vue.filter('dateFormat',function(dataStr,pattern="YYYY-MM-DD  HH:mm:ss"){
	 return moment(dataStr).format(pattern)
})
import VueResource   from  'vue-resource'
Vue.use(VueResource)

//设置请求的根路径
Vue.http.options.root='http://www.liulongbin.top:3005'
Vue.http.options.emulateJSON=true//全局配置post请求格式


//Vue.use(MintUI)
var vm = new Vue({
	el: '#app',
	render: c => c(App),
	router:router//挂在路由实例
})